import java.awt.Color;

	public class BasicStar {
		
	    /* Create the window frame and display it  */
		public static void main(String args[]) {
	        Painter.draw("BasicStar");
	    }
	    
		public static void draw() { 
			int height = Painter.getFrameHeight()/2;
			int width = Painter.getFrameWidth()/2;
			int maxRadius = Math.min(height, width)/2;
			int size = maxRadius/4;
			Painter.setColor(Color.blue);
			drawBasicStar(height, width, size);
			}   
		    
		public static void drawBasicStar (int x, int y, int size) {
			for (int i = 0; i<6; i++) {
				int endX = x + (int)(size*Math.cos(2*Math.PI/6*i));
				int endY = y - (int)(size*Math.sin(2*Math.PI/6*i )); 
				Painter.drawLine(x, y, endX, endY);
			}
		}
	}